quam bene vivas referre (or refert), non quam diu

it is how well you live that matters, not how long

Notes

Seneca, Epistulae morales ad Lucilium CI (101)